package com.qujia.station.mapper;


import com.qujia.station.domain.InventoryDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InventoryDetailsMapper {
    int deleteByPrimaryKey(Long inventoryId);

    int insert(InventoryDetails record);

    int insertSelective(InventoryDetails record);

    InventoryDetails selectByPrimaryKey(Long inventoryId);

    int updateByPrimaryKeySelective(InventoryDetails record);

    int updateByPrimaryKey(InventoryDetails record);

    List<InventoryDetails> selectInventoryDetailsList(@Param("batchId") Long batchId);

    InventoryDetails selectInventoryDetailsSum(@Param("batchId") Long batchId);

    InventoryDetails selectInventoryDetails(InventoryDetails inventoryDetails);
}